express = require 'express'

module.exports = app = express()

tokenSalt = "%i2oh;l^%&-="

# reset passwd
app.get '/reset', (req, res) ->
  res.render 'user/reset_index.hbs',
    error: req.session.error
  req.session.error = ""

app.post '/reset', (req, res) ->

app.get '/reset/set', (req, res) ->

app.post '/reset/set', (req, res) ->

#  Profile
app.get '/profile', (req, res) ->

# Change profile
app.post '/profile', (req, res) ->


# Change password
app.post '/password', (req, res) ->

# 获取app绑定信息
app.get '/app', (req, res) ->

# 写入新的token
app.post '/app/:appName', (req, res) ->

# external API call
app.get '/app/api', (req, res) ->